package cn.tedu.submarine;

import javax.swing.*;

public class Bomb extends SeaObject{
   public Bomb(int x,int y){
        super(9,12,x,y,3);
    }
    public void move(){
        setY(getY() + getSpeed());
    }

    /** 重写*/
    public ImageIcon getImage(){
        return Images.bomb;
    }

    /**  炸弹越界*/
    public boolean isOutOfBounds(){
        return this.getY()>=World.HEIGHT;
    }
}
